{
  "name": "Config Compliance and Remediation - Find Tree ID",
  "tasks": {
    "workflow_start": {
      "name": "workflow_start",
      "groups": [],
      "x": -0.43859649122807,
      "y": 0.388686131386861,
      "summary": "workflow_start",
      "description": "workflow_start"
    },
    "workflow_end": {
      "name": "workflow_end",
      "groups": [],
      "x": 0.355263157894737,
      "y": 0.430976430976431,
      "summary": "workflow_end",
      "description": "workflow_end"
    },
    "d261": {
      "name": "getGoldenConfigTrees",
      "summary": "Get a list of all Golden Config trees.",
      "description": "Get a list of all Golden Config trees.",
      "location": "Application",
      "locationType": null,
      "app": "ConfigurationManager",
      "displayName": "ConfigurationManager",
      "type": "automatic",
      "variables": {
        "incoming": {},
        "outgoing": {
          "goldenConfigTrees": null
        },
        "translations": []
      },
      "deprecated": false,
      "groups": [],
      "actor": "Pronghorn",
      "x": -0.242982456140351,
      "y": 0.400673400673401
    },
    "98a7": {
      "name": "query",
      "summary": "Query Tree id",
      "description": "Query data using a dot/bracket notation string and a matching key/value pair.",
      "location": "Application",
      "locationType": null,
      "app": "WorkFlowEngine",
      "displayName": "WorkFlowEngine",
      "type": "operation",
      "variables": {
        "incoming": {
          "pass_on_null": false,
          "query": "id",
          "obj": "$var.43de.current_item"
        },
        "outgoing": {
          "return_data": "$var.job.treeId"
        },
        "error": "",
        "translations": [
          {
            "translations": [],
            "type": "*",
            "variable": "treeId"
          }
        ],
        "decorators": []
      },
      "deprecated": false,
      "groups": [],
      "x": 0.256140350877193,
      "y": -0.00505050505050505,
      "scheduled": false
    },
    "43de": {
      "name": "forEach",
      "summary": "Loop over every tree",
      "description": "Iterate over each item in an array",
      "location": "Application",
      "locationType": null,
      "app": "WorkFlowEngine",
      "displayName": "WorkFlowEngine",
      "type": "operation",
      "variables": {
        "incoming": {
          "data_array": "$var.d261.goldenConfigTrees"
        },
        "outgoing": {
          "current_item": null
        },
        "error": "",
        "translations": []
      },
      "deprecated": false,
      "groups": [],
      "x": 0.209649122807018,
      "y": 0.429292929292929,
      "scheduled": false
    },
    "22c3": {
      "name": "evaluation",
      "summary": "Run Evaluation Task",
      "description": "Run an evaluation",
      "location": "Application",
      "locationType": null,
      "app": "WorkFlowEngine",
      "displayName": "WorkFlowEngine",
      "type": "operation",
      "variables": {
        "incoming": {
          "all_true_flag": false,
          "evaluation_groups": [
            {
              "all_true_flag": false,
              "evaluations": [
                {
                  "query": "name",
                  "operand_1": {
                    "variable": "current_item",
                    "task": "43de"
                  },
                  "operator": "==",
                  "operand_2": {
                    "variable": "treeName",
                    "task": "job",
                    "editable": true
                  }
                }
              ]
            }
          ]
        },
        "outgoing": {
          "return_value": null
        },
        "translations": []
      },
      "deprecated": false,
      "groups": [],
      "x": 0.202631578947368,
      "y": 0.144781144781145
    },
    "c453": {
      "name": "newVariable",
      "summary": "Create a Job Variable",
      "description": "Create a new Job variable by Job ID and assign it a value.",
      "location": "Application",
      "locationType": null,
      "app": "WorkFlowEngine",
      "displayName": "WorkFlowEngine",
      "type": "operation",
      "variables": {
        "incoming": {
          "name": "treeId",
          "value": ""
        },
        "outgoing": {
          "value": null
        },
        "translations": []
      },
      "deprecated": false,
      "groups": [],
      "x": -0.04030501089324619,
      "y": 0.325626204238921
    },
    "6d58": {
      "name": "newVariable",
      "summary": "Create a Job Variable",
      "description": "Create a new Job variable by Job ID and assign it a value.",
      "location": "Application",
      "locationType": null,
      "app": "WorkFlowEngine",
      "displayName": "WorkFlowEngine",
      "type": "operation",
      "variables": {
        "incoming": {
          "name": "treeVersions",
          "value": ""
        },
        "outgoing": {
          "value": null
        },
        "translations": []
      },
      "deprecated": false,
      "groups": [],
      "x": -0.0447368421052632,
      "y": 0.65993265993266
    },
    "acd5": {
      "name": "query",
      "summary": "Query Tree versions",
      "description": "Query data using a dot/bracket notation string and a matching key/value pair.",
      "location": "Application",
      "locationType": null,
      "app": "WorkFlowEngine",
      "displayName": "WorkFlowEngine",
      "type": "operation",
      "variables": {
        "incoming": {
          "pass_on_null": false,
          "query": "versions",
          "obj": "$var.43de.current_item"
        },
        "outgoing": {
          "return_data": "$var.job.treeVersions"
        },
        "error": "",
        "translations": [
          {
            "translations": [],
            "type": "*",
            "variable": "treeVersions"
          }
        ],
        "decorators": []
      },
      "deprecated": false,
      "groups": [],
      "x": 0.143859649122807,
      "y": -0.00673400673400673,
      "scheduled": false
    }
  },
  "transitions": {
    "5617": {},
    "6047": {},
    "7575": {},
    "9666": {},
    "workflow_start": {
      "d261": {
        "type": "standard",
        "state": "success"
      }
    },
    "workflow_end": {},
    "8f13": {},
    "f128": {},
    "777e": {},
    "cc1b": {},
    "d261": {
      "c453": {
        "type": "standard",
        "state": "success"
      },
      "6d58": {
        "type": "standard",
        "state": "success"
      }
    },
    "98a7": {},
    "43de": {
      "22c3": {
        "type": "standard",
        "state": "loop"
      },
      "workflow_end": {
        "type": "standard",
        "state": "success"
      }
    },
    "22c3": {
      "98a7": {
        "type": "standard",
        "state": "success"
      },
      "acd5": {
        "type": "standard",
        "state": "success"
      }
    },
    "c453": {
      "43de": {
        "type": "standard",
        "state": "success"
      }
    },
    "6d58": {
      "43de": {
        "type": "standard",
        "state": "success"
      }
    },
    "acd5": {},
    "f3ab": {},
    "fe34": {}
  },
  "font_size": 12,
  "created": "2020-02-19T01:29:11.921Z",
  "created_by": {
    "provenance": "Local AAA",
    "username": "admin@pronghorn",
    "firstname": "admin",
    "inactive": true,
    "email": ""
  },
  "createdVersion": "4.5.3-2019.2.9.0",
  "last_updated": "2022-07-05T15:25:06.970Z",
  "last_updated_by": {
    "provenance": "Itential-Okta",
    "username": "robert.terpin@itential.com",
    "firstname": "Robert",
    "inactive": false
  },
  "lastUpdatedVersion": "5.44.57",
  "type": "automation",
  "description": null,
  "inputSchema": {
    "type": "object",
    "properties": {
      "treeName": {
        "type": [
          "array",
          "boolean",
          "null",
          "number",
          "object",
          "string"
        ]
      }
    },
    "required": [
      "treeName"
    ]
  },
  "outputSchema": {
    "type": "object",
    "properties": {
      "treeName": {
        "type": [
          "array",
          "boolean",
          "null",
          "number",
          "object",
          "string"
        ]
      },
      "_id": {
        "type": "string",
        "pattern": "^[0-9a-f]{24}$"
      },
      "initiator": {
        "type": "string"
      },
      "treeId": {
        "title": "return_data",
        "type": [
          "string",
          "number",
          "object",
          "integer",
          "array",
          "boolean",
          "null"
        ],
        "examples": [
          "value"
        ]
      },
      "treeVersions": {
        "title": "return_data",
        "type": [
          "string",
          "number",
          "object",
          "integer",
          "array",
          "boolean",
          "null"
        ],
        "examples": [
          "value"
        ]
      }
    }
  },
  "canvasVersion": 1,
  "tags": [],
  "groups": [],
  "migrationVersion": 1
}